package simulation.initiatives;

import common.Buffer;
import common.SimulationSettings;
import common.StepData;

public class EngineBuffer extends AbstractEngine {
  private Buffer buffer;
  private SimulationSettings settings;
  
  public EngineBuffer(Buffer buffer, SimulationSettings settings) {
    super();
    this.buffer = buffer;
    this.settings = settings;
  }
        
  public void pushToBuffer(StepData data) {
    buffer.push(data);
  }
  
  public void start() {
    //use the step method implemented in AbstractEngine in the loop
    //call pushToBuffer() after each iteration
  }
    
  public void pause() {
    
  }
  
  public void reset() {
    buffer.reset();
  }
  
}
